package com.ehotting.edsta.circuitDesign.generator.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 电路
 * @TableName es_circuit
 */
public class EsCircuit implements Serializable {
    /**
     * 编号
     */
    private Long id;

    /**
     * 电路类型编码
     */
    private Long circuit_type_id;

    /**
     * 名称
     */
    private String name;

    /**
     * 可用状态
     */
    private Integer state;

    /**
     * 插入时间
     */
    private Date insert_time;

    /**
     * 用户编号
     */
    private Long user_id;

    /**
     * 模板工程地址
     */
    private String project_path;

    /**
     * 缩略图地址，多张，存json数组
     */
    private String thumbnail_path;

    /**
     * 方案封面图地址
     */
    private String thumb_path;

    /**
     * 图表地址
     */
    private String charts_path;

    /**
     * bom表地址
     */
    private String bom_path;

    /**
     * 网络替换表地址
     */
    private String net_path;

    /**
     * 位号替换表地址
     */
    private String designators_path;

    /**
     * 描述
     */
    private String description;

    /**
     * 采集类型
     */
    private Integer signal_type;

    /**
     * 存储类型
     */
    private Integer storage_type;

    /**
     * 存储容量，单位B
     */
    private Long storage_capacity;

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    public Long getId() {
        return id;
    }

    /**
     * 编号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 电路类型编码
     */
    public Long getCircuit_type_id() {
        return circuit_type_id;
    }

    /**
     * 电路类型编码
     */
    public void setCircuit_type_id(Long circuit_type_id) {
        this.circuit_type_id = circuit_type_id;
    }

    /**
     * 名称
     */
    public String getName() {
        return name;
    }

    /**
     * 名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 可用状态
     */
    public Integer getState() {
        return state;
    }

    /**
     * 可用状态
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 插入时间
     */
    public Date getInsert_time() {
        return insert_time;
    }

    /**
     * 插入时间
     */
    public void setInsert_time(Date insert_time) {
        this.insert_time = insert_time;
    }

    /**
     * 用户编号
     */
    public Long getUser_id() {
        return user_id;
    }

    /**
     * 用户编号
     */
    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    /**
     * 模板工程地址
     */
    public String getProject_path() {
        return project_path;
    }

    /**
     * 模板工程地址
     */
    public void setProject_path(String project_path) {
        this.project_path = project_path;
    }

    /**
     * 缩略图地址，多张，存json数组
     */
    public String getThumbnail_path() {
        return thumbnail_path;
    }

    /**
     * 缩略图地址，多张，存json数组
     */
    public void setThumbnail_path(String thumbnail_path) {
        this.thumbnail_path = thumbnail_path;
    }

    /**
     * 方案封面图地址
     */
    public String getThumb_path() {
        return thumb_path;
    }

    /**
     * 方案封面图地址
     */
    public void setThumb_path(String thumb_path) {
        this.thumb_path = thumb_path;
    }

    /**
     * 图表地址
     */
    public String getCharts_path() {
        return charts_path;
    }

    /**
     * 图表地址
     */
    public void setCharts_path(String charts_path) {
        this.charts_path = charts_path;
    }

    /**
     * bom表地址
     */
    public String getBom_path() {
        return bom_path;
    }

    /**
     * bom表地址
     */
    public void setBom_path(String bom_path) {
        this.bom_path = bom_path;
    }

    /**
     * 网络替换表地址
     */
    public String getNet_path() {
        return net_path;
    }

    /**
     * 网络替换表地址
     */
    public void setNet_path(String net_path) {
        this.net_path = net_path;
    }

    /**
     * 位号替换表地址
     */
    public String getDesignators_path() {
        return designators_path;
    }

    /**
     * 位号替换表地址
     */
    public void setDesignators_path(String designators_path) {
        this.designators_path = designators_path;
    }

    /**
     * 描述
     */
    public String getDescription() {
        return description;
    }

    /**
     * 描述
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 采集类型
     */
    public Integer getSignal_type() {
        return signal_type;
    }

    /**
     * 采集类型
     */
    public void setSignal_type(Integer signal_type) {
        this.signal_type = signal_type;
    }

    /**
     * 存储类型
     */
    public Integer getStorage_type() {
        return storage_type;
    }

    /**
     * 存储类型
     */
    public void setStorage_type(Integer storage_type) {
        this.storage_type = storage_type;
    }

    /**
     * 存储容量，单位B
     */
    public Long getStorage_capacity() {
        return storage_capacity;
    }

    /**
     * 存储容量，单位B
     */
    public void setStorage_capacity(Long storage_capacity) {
        this.storage_capacity = storage_capacity;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EsCircuit other = (EsCircuit) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCircuit_type_id() == null ? other.getCircuit_type_id() == null : this.getCircuit_type_id().equals(other.getCircuit_type_id()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getInsert_time() == null ? other.getInsert_time() == null : this.getInsert_time().equals(other.getInsert_time()))
            && (this.getUser_id() == null ? other.getUser_id() == null : this.getUser_id().equals(other.getUser_id()))
            && (this.getProject_path() == null ? other.getProject_path() == null : this.getProject_path().equals(other.getProject_path()))
            && (this.getThumbnail_path() == null ? other.getThumbnail_path() == null : this.getThumbnail_path().equals(other.getThumbnail_path()))
            && (this.getThumb_path() == null ? other.getThumb_path() == null : this.getThumb_path().equals(other.getThumb_path()))
            && (this.getCharts_path() == null ? other.getCharts_path() == null : this.getCharts_path().equals(other.getCharts_path()))
            && (this.getBom_path() == null ? other.getBom_path() == null : this.getBom_path().equals(other.getBom_path()))
            && (this.getNet_path() == null ? other.getNet_path() == null : this.getNet_path().equals(other.getNet_path()))
            && (this.getDesignators_path() == null ? other.getDesignators_path() == null : this.getDesignators_path().equals(other.getDesignators_path()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getSignal_type() == null ? other.getSignal_type() == null : this.getSignal_type().equals(other.getSignal_type()))
            && (this.getStorage_type() == null ? other.getStorage_type() == null : this.getStorage_type().equals(other.getStorage_type()))
            && (this.getStorage_capacity() == null ? other.getStorage_capacity() == null : this.getStorage_capacity().equals(other.getStorage_capacity()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCircuit_type_id() == null) ? 0 : getCircuit_type_id().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getInsert_time() == null) ? 0 : getInsert_time().hashCode());
        result = prime * result + ((getUser_id() == null) ? 0 : getUser_id().hashCode());
        result = prime * result + ((getProject_path() == null) ? 0 : getProject_path().hashCode());
        result = prime * result + ((getThumbnail_path() == null) ? 0 : getThumbnail_path().hashCode());
        result = prime * result + ((getThumb_path() == null) ? 0 : getThumb_path().hashCode());
        result = prime * result + ((getCharts_path() == null) ? 0 : getCharts_path().hashCode());
        result = prime * result + ((getBom_path() == null) ? 0 : getBom_path().hashCode());
        result = prime * result + ((getNet_path() == null) ? 0 : getNet_path().hashCode());
        result = prime * result + ((getDesignators_path() == null) ? 0 : getDesignators_path().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getSignal_type() == null) ? 0 : getSignal_type().hashCode());
        result = prime * result + ((getStorage_type() == null) ? 0 : getStorage_type().hashCode());
        result = prime * result + ((getStorage_capacity() == null) ? 0 : getStorage_capacity().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", circuit_type_id=").append(circuit_type_id);
        sb.append(", name=").append(name);
        sb.append(", state=").append(state);
        sb.append(", insert_time=").append(insert_time);
        sb.append(", user_id=").append(user_id);
        sb.append(", project_path=").append(project_path);
        sb.append(", thumbnail_path=").append(thumbnail_path);
        sb.append(", thumb_path=").append(thumb_path);
        sb.append(", charts_path=").append(charts_path);
        sb.append(", bom_path=").append(bom_path);
        sb.append(", net_path=").append(net_path);
        sb.append(", designators_path=").append(designators_path);
        sb.append(", description=").append(description);
        sb.append(", signal_type=").append(signal_type);
        sb.append(", storage_type=").append(storage_type);
        sb.append(", storage_capacity=").append(storage_capacity);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}